package com.Soar628.controller;

import com.Soar628.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AccountController {
    public static void main(String[] args) {
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService accountService = app.getBean(AccountService.class);
        accountService.transfer("tom", "super", 500);
    }

    public static void eat() {
        System.out.println("eat........");
    }

    public static void listen() {
        System.out.println("listen......");
    }
}